﻿using Infrastructure.AggregateBase;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;


/// <summary>
/// 系统消息
/// </summary>
[Table("Message")]
public class MessageAggregate : AggregateRoot<MessageAggregate, int>
{
    [Key]
    [DatabaseGeneratedAttribute(DatabaseGeneratedOption.Identity)]
    public override int ID { get; set; }
    /// <summary>
    /// {系统：0|管理员：1}
    /// </summary>
    public int From { get; set; }
    [StringLength(255)]
    public string Title { get; set; }

    [StringLength(5000)]
    public string Body { get; set; }
    /// <summary>
    /// 0正常 1禁用
    /// </summary>
    public int Status { get; set; }

}

